home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMSVGStylable.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  4KB  |  120 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMSVGStylable.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMSVGStylable_h__
  6. #define __gen_nsIDOMSVGStylable_h__
  7.  
  8.  
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIDOMSVGAnimatedString; /* forward declaration */
  18.  
  19. class nsIDOMCSSStyleDeclaration; /* forward declaration */
  20.  
  21. class nsIDOMCSSValue; /* forward declaration */
  22.  
  23.  
  24. /* starting interface:    nsIDOMSVGStylable */
  25. #define NS_IDOMSVGSTYLABLE_IID_STR "ea8a6cb1-9176-45db-989d-d0e89f563d7e"
  26.  
  27. #define NS_IDOMSVGSTYLABLE_IID \
  28.   {0xea8a6cb1, 0x9176, 0x45db, \
  29.     { 0x98, 0x9d, 0xd0, 0xe8, 0x9f, 0x56, 0x3d, 0x7e }}
  30.  
  31. class NS_NO_VTABLE nsIDOMSVGStylable : public nsISupports {
  32.  public: 
  33.  
  34.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMSVGSTYLABLE_IID)
  35.  
  36.   /* readonly attribute nsIDOMSVGAnimatedString className; */
  37.   NS_IMETHOD GetClassName(nsIDOMSVGAnimatedString * *aClassName) = 0;
  38.  
  39.   /* readonly attribute nsIDOMCSSStyleDeclaration style; */
  40.   NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration * *aStyle) = 0;
  41.  
  42.   /* nsIDOMCSSValue getPresentationAttribute (in DOMString name); */
  43.   NS_IMETHOD GetPresentationAttribute(const nsAString & name, nsIDOMCSSValue **_retval) = 0;
  44.  
  45. };
  46.  
  47. /* Use this macro when declaring classes that implement this interface. */
  48. #define NS_DECL_NSIDOMSVGSTYLABLE \
  49.   NS_IMETHOD GetClassName(nsIDOMSVGAnimatedString * *aClassName); \
  50.   NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration * *aStyle); \
  51.   NS_IMETHOD GetPresentationAttribute(const nsAString & name, nsIDOMCSSValue **_retval); 
  52.  
  53. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  54. #define NS_FORWARD_NSIDOMSVGSTYLABLE(_to) \
  55.   NS_IMETHOD GetClassName(nsIDOMSVGAnimatedString * *aClassName) { return _to GetClassName(aClassName); } \
  56.   NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration * *aStyle) { return _to GetStyle(aStyle); } \
  57.   NS_IMETHOD GetPresentationAttribute(const nsAString & name, nsIDOMCSSValue **_retval) { return _to GetPresentationAttribute(name, _retval); } 
  58.  
  59. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  60. #define NS_FORWARD_SAFE_NSIDOMSVGSTYLABLE(_to) \
  61.   NS_IMETHOD GetClassName(nsIDOMSVGAnimatedString * *aClassName) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClassName(aClassName); } \
  62.   NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration * *aStyle) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStyle(aStyle); } \
  63.   NS_IMETHOD GetPresentationAttribute(const nsAString & name, nsIDOMCSSValue **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPresentationAttribute(name, _retval); } 
  64.  
  65. #if 0
  66. /* Use the code below as a template for the implementation class for this interface. */
  67.  
  68. /* Header file */
  69. class nsDOMSVGStylable : public nsIDOMSVGStylable
  70. {
  71. public:
  72.   NS_DECL_ISUPPORTS
  73.   NS_DECL_NSIDOMSVGSTYLABLE
  74.  
  75.   nsDOMSVGStylable();
  76.  
  77. private:
  78.   ~nsDOMSVGStylable();
  79.  
  80. protected:
  81.   /* additional members */
  82. };
  83.  
  84. /* Implementation file */
  85. NS_IMPL_ISUPPORTS1(nsDOMSVGStylable, nsIDOMSVGStylable)
  86.  
  87. nsDOMSVGStylable::nsDOMSVGStylable()
  88. {
  89.   /* member initializers and constructor code */
  90. }
  91.  
  92. nsDOMSVGStylable::~nsDOMSVGStylable()
  93. {
  94.   /* destructor code */
  95. }
  96.  
  97. /* readonly attribute nsIDOMSVGAnimatedString className; */
  98. NS_IMETHODIMP nsDOMSVGStylable::GetClassName(nsIDOMSVGAnimatedString * *aClassName)
  99. {
  100.     return NS_ERROR_NOT_IMPLEMENTED;
  101. }
  102.  
  103. /* readonly attribute nsIDOMCSSStyleDeclaration style; */
  104. NS_IMETHODIMP nsDOMSVGStylable::GetStyle(nsIDOMCSSStyleDeclaration * *aStyle)
  105. {
  106.     return NS_ERROR_NOT_IMPLEMENTED;
  107. }
  108.  
  109. /* nsIDOMCSSValue getPresentationAttribute (in DOMString name); */
  110. NS_IMETHODIMP nsDOMSVGStylable::GetPresentationAttribute(const nsAString & name, nsIDOMCSSValue **_retval)
  111. {
  112.     return NS_ERROR_NOT_IMPLEMENTED;
  113. }
  114.  
  115. /* End of implementation class template. */
  116. #endif
  117.  
  118.  
  119. #endif /* __gen_nsIDOMSVGStylable_h__ */
  120.